import request from '@/utils/request'

// 查询服务阶段列表
export function listServicephase(query) {
  return request({
    url: '/system/servicephase/list',
    method: 'get',
    params: query
  })
}

// 查询服务阶段详细
export function getServicephase(servicePhaseId) {
  return request({
    url: '/system/servicephase/' + servicePhaseId,
    method: 'get'
  })
}

// 新增服务阶段

export function addServicephase(data) {
  return request({
    url: '/system/servicephase',
    method: 'post',
    data: data
  })
}

// 修改服务阶段

export function updateServicephase(data) {
  return request({
    url: '/system/servicephase',
    method: 'put',
    data: data
  })
}

// 删除服务阶段

export function delServicephase(servicePhaseId) {
  return request({
    url: '/system/servicephase/' + servicePhaseId,
    method: 'delete'
  })
}
